<?xml version="1.0" encoding="ISO-8859-1"?>
<build xmlns="http://symbian.com/xml/build" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symbian.com/xml/build ../../schema/build/2_0.xsd">
	<!-- The standard locations for widely used tools and resources.

       This is easier to maintain than defining the locations in each
       configuration that uses a tool or resource.
	-->

	<var name="hostplatform.locations" host='linux.*'>	
		<env name='SBS_SLASHBIN' default='/bin'/>
		<env name='SBS_USRBIN' default='/usr/bin'/>
		<env name='SBS_GCC_BIN' default='$(SBS_USRBIN)'/>
				
		<set name='DOTEXE' value=''/>
		<set name='GCCPREFIX' value='$(SBS_GCC_BIN)/'/>
		<set name='GNUPREFIX' value='$(SBS_SLASHBIN)/'/>
		
		<env name='HOSTPLATFORM_DIR' default='linux-i386' />
		<env name='HOSTPLATFORM32_DIR' default='linux-i386' />
		<env name='HOSTPLATFORM' default='linux i386'/>
		
		<env name='SBS_QTBIN' default='$(EPOCROOT)/epoc32/tools' type='path'/>

		<env name='SBS_GNUCPP' default='$(SBS_USRBIN)/cpp' type='tool'/>
		<env name='SBS_GNUDATE' default='$(SBS_SLASHBIN)/date' type='tool'/>
		<env name='SBS_GNUDIFF' default='$(SBS_USRBIN)/diff' type='tool'/>
		<env name='SBS_GNUMAKE38' default='$(SBS_USRBIN)/make' type='tool'/>
		<env name='SBS_GNUSED' default='$(SBS_SLASHBIN)/sed' type='tool'/>
		<env name='SBS_GNUMKDIR' default='$(SBS_SLASHBIN)/mkdir' type='tool'/>
		<env name='SBS_GNUMV' default='$(SBS_SLASHBIN)/mv' type='tool'/>
		<env name='SBS_GNUCP' default='$(SBS_SLASHBIN)/cp' type='tool'/>
		<env name='SBS_GNUCAT' default='$(SBS_SLASHBIN)/cat' type='tool'/>
		<env name='SBS_GNURM' default='$(SBS_SLASHBIN)/rm' type='tool'/>
		<env name='SBS_GNULN' default='$(SBS_SLASHBIN)/ln' type='tool'/>
		<env name='SBS_GNURMDIR' default='$(SBS_SLASHBIN)/rmdir' type='tool'/>
		<env name='SBS_GNUCHMOD' default='$(SBS_SLASHBIN)/chmod' type='tool'/>
		<env name='SBS_GNUMD5SUM' default='$(SBS_USRBIN)/md5sum' type='tool'/>
		<env name='SBS_GNUTOUCH' default='$(SBS_SLASHBIN)/touch' type='tool'/>
		<env name='SBS_GNUFIND' default='$(SBS_USRBIN)/find' type='tool'/>
		<env name='SBS_GNUGREP' default='$(SBS_SLASHBIN)/grep' type='tool'/>
		<env name='SBS_GNUSORT' default='sort' type='tool'/>
		<env name='SBS_GNUTR' default='$(SBS_USRBIN)/tr' type='tool'/>
		<env name='SBS_GNUUNIQ' default='$(SBS_USRBIN)/uniq' type='tool'/>
		<env name='SBS_SHELL' default="$(SBS_SLASHBIN)/bash" type='tool'/>
		<env name='SBS_ZIP' default="$(SBS_USRBIN)/zip" type='tool'/>
		<env name='SBS_UNZIP' default="$(SBS_USRBIN)/unzip" type='tool'/>
		<env name='SBS_BVCPP' default="$(SBS_HOME)/$(HOSTPLATFORM_DIR)/bv/bin/cpp" type='tool'/>
		<env name='SBS_PERL' default='perl' type='tool'/>
		<env name='SBS_PYTHON' default='python' type='tool'/>
		<env name='SBS_PYTHON3' default='python3' type='tool'/>
		<env name='SBS_QMAKE' default='$(SBS_QTBIN)/qt/qmake' type='tool'/>
		<env name='SBS_MOC' default='$(SBS_QTBIN)/moc' type='tool'/>
		<env name='SBS_UIC' default='$(SBS_QTBIN)/uic' type='tool'/>
		<env name='SBS_RCC' default='$(SBS_QTBIN)/rcc' type='tool'/>
	</var>
	<var name="hostplatform.locations" host='win.*' >
		<set name='COREUTILSBINDIR' value='$(SBS_CYGWIN)/bin' type='path'/>
		<set name='DOTEXE' value='.exe'/>
		<set name='GNUPREFIX' value='$(COREUTILSBINDIR)/'/>
		<set name='GCCPREFIX' value='$(MINGWBINDIR)/'/>
		<set name='MINGWBINDIR' value='$(SBS_MINGW)/bin' type='path'/>
		
		<env name='HOSTPLATFORM_DIR' default='win32' /> 
		<env name='HOSTPLATFORM' default='win 32' />
		<set name='SHELL_CL_MAX' value='16380'/> <!-- cygwin/bash-specific command line length limitation -->
		
		<env name='SBS_CYGWIN' default='$(SBS_HOME)/$(HOSTPLATFORM_DIR)/cygwin' type='path'/>
		<env name='SBS_MINGW' default='$(SBS_HOME)/$(HOSTPLATFORM_DIR)/mingw' type='path'/>
		<env name='SBS_QTBIN' default='$(EPOCROOT)/epoc32/tools' type='path'/>

		<env name='SBS_GNUCPP' default='$(MINGWBINDIR)/cpp.exe' type='tool'/>
		<env name='SBS_GNUDATE' default='$(COREUTILSBINDIR)/date.exe' type='tool'/>
		<env name='SBS_GNUDIFF' default='$(COREUTILSBINDIR)/diff.exe' type='tool'/>
		<env name='SBS_GNUMAKE38' default='$(MINGWBINDIR)/mingw32-make.exe' type='tool'/>
		<env name='SBS_GNUSED' default='$(COREUTILSBINDIR)/sed.exe' type='tool'/>
		<env name='SBS_GNUMKDIR' default='$(COREUTILSBINDIR)/mkdir.exe' type='tool'/>
		<env name='SBS_GNUCP' default='$(COREUTILSBINDIR)/cp.exe' type='tool'/>
		<env name='SBS_GNUMV' default='$(COREUTILSBINDIR)/mv.exe' type='tool'/>
		<env name='SBS_GNUCAT' default='$(COREUTILSBINDIR)/cat.exe' type='tool'/>
		<env name='SBS_GNURM' default='$(COREUTILSBINDIR)/rm.exe' type='tool'/>
		<env name='SBS_GNULN' default='$(COREUTILSBINDIR)/ln.exe' type='tool'/>
		<env name='SBS_GNURMDIR' default='$(COREUTILSBINDIR)/rmdir.exe' type='tool'/>
		<env name='SBS_GNUCHMOD' default='$(COREUTILSBINDIR)/chmod.exe' type='tool'/>
		<env name='SBS_GNUMD5SUM' default='$(COREUTILSBINDIR)/md5sum.exe' type='tool'/>
		<env name='SBS_GNUTOUCH' default='$(COREUTILSBINDIR)/touch.exe' type='tool'/>
		<env name='SBS_GNUFIND' default='$(COREUTILSBINDIR)/find.exe' type='tool'/>
		<env name='SBS_GNUGREP' default='$(COREUTILSBINDIR)/grep.exe' type='tool'/>
		<env name='SBS_GNUSORT' default='$(COREUTILSBINDIR)/sort.exe' type='tool'/>
		<env name='SBS_GNUTR' default='$(COREUTILSBINDIR)/tr.exe' type='tool'/>
		<env name='SBS_GNUUNIQ' default='$(COREUTILSBINDIR)/uniq.exe' type='tool'/>
		<env name='SBS_SHELL' default="$(COREUTILSBINDIR)/sh.exe" type='tool'/>
		<env name='SBS_ZIP' default="$(COREUTILSBINDIR)/zip.exe" type='tool'/>
		<env name='SBS_UNZIP' default="$(COREUTILSBINDIR)/unzip.exe" type='tool'/>
		<env name='SBS_BVCPP' default="$(SBS_HOME)/$(HOSTPLATFORM_DIR)/bv/bin/cpp.exe" type='tool'/>
		<env name='SBS_PERL' default='perl.exe' type='tool'/>
		<env name='SBS_PYTHON' default='python.exe' type='tool'/>
		<env name='SBS_PYTHON3' default='python3.exe' type='tool'/>
		<env name='SBS_QMAKE' default='$(SBS_QTBIN)/qt/qmake.exe' type='tool'/>
		<env name='SBS_MOC' default='$(SBS_QTBIN)/moc.exe' type='tool'/>
		<env name='SBS_UIC' default='$(SBS_QTBIN)/uic.exe' type='tool'/>
		<env name='SBS_RCC' default='$(SBS_QTBIN)/rcc.exe' type='tool'/>
	</var>

	<var name="default.locations" extends="hostplatform.locations">
		<env name='EPOCROOT' default='' type='path'/>
		<env name='SBS_HOME' default='' type='path'/>
		<!-- Place where intermediate files are built -->
		<env name='SBS_BUILD_DIR' default='$(EPOCROOT)/epoc32/build' type='path'/>
		<env name='SBS_QT_HEADERS' default='$(EPOCROOT)/epoc32/include/mw' />
		<env name='SBS_QMAKE_INCDIR_QT' default='$(EPOCROOT)/epoc32/tools/qt/mkspecs/symbian-sbsv2' />
		<env name='SBS_QMAKESPEC' default='$(EPOCROOT)/epoc32/tools/qt/mkspecs/symbian-sbsv2' />

		<set name='DATE' value='$(SBS_GNUDATE)' type='tool'/>
		<set name='GNUCPP' value='$(SBS_GNUCPP)' type='tool' versionCommand='$(GNUCPP) --version' versionResult='cpp(.exe)? .* [345]\..*'/>
		<set name='GNUCP' value='$(SBS_GNUCP)' type='tool' versionCommand='$(GNUCP) --version' versionResult='cp(.exe)?\s*\((GNU\s*)?coreutils\)\s*[5-9]\..*'/>
		<set name='GNUMV' value='$(SBS_GNUMV)' type='tool' versionCommand='$(GNUMV) --version' versionResult='mv(.exe)?\s*\((GNU\s*)?coreutils\)\s*[5-9]\..*'/>
		<set name='GNUCAT' value='$(SBS_GNUCAT)' type='tool' versionCommand='$(GNUCAT) --version' versionResult='cat(.exe)?\s*\((GNU\s*)?coreutils\)\s*[5-9]\..*'/>
		<set name='GNUMAKE38' value='$(SBS_GNUMAKE38)' type='tool' versionCommand='$(GNUMAKE38) -v' versionResult='GNU Make 3.8[1-9]'/>
		<set name='GNUSED' value='$(SBS_GNUSED)' type='tool' versionCommand='$(GNUSED) --version' versionResult='GNU sed version? [3-9].*'/>
		<set name='GNUMKDIR' value='$(SBS_GNUMKDIR)' type='tool' versionCommand='$(GNUMKDIR) --version' versionResult='.*'/>
		<set name='GNURM' value='$(SBS_GNURM)' type='tool' versionCommand='$(GNURM) --version' versionResult='rm.*coreutils.*'/>
		<set name='GNULN' value='$(SBS_GNULN)' type='tool' versionCommand='$(GNULN) --version' versionResult='ln.*coreutils.*'/>
		<set name='GNURMDIR' value='$(SBS_GNURMDIR)' type='tool' versionCommand='$(GNURMDIR) --version' versionResult='rmdir.*coreutils.*'/>
		<set name='GNUCHMOD' value='$(SBS_GNUCHMOD)' type='tool' versionCommand='$(GNUCHMOD) --version' versionResult='chmod.*coreutils.*'/>
		<set name='GNUMD5SUM' value='$(SBS_GNUMD5SUM)' type='tool' versionCommand='$(GNUMD5SUM) --version' versionResult='md5sum.*coreutils.*'/>
		<set name='GNUTOUCH' value='$(SBS_GNUTOUCH)' type='tool' versionCommand='$(GNUTOUCH) --version' versionResult='touch.*coreutils.*'/>
		<set name='GNUFIND' value='$(SBS_GNUFIND)' type='tool' versionCommand='$(GNUFIND) --version' versionResult='(GNU)?.*find.*(GNU)?.*'/>
		<set name='GNUGREP' value='$(SBS_GNUGREP)' type='tool' versionCommand='$(GNUGREP) --version' versionResult='(GNU)?.*grep.*(GNU)?.*'/>
		<set name='GNUSORT' value='$(SBS_GNUSORT)' type='tool' versionCommand='$(GNUSORT) --version' versionResult='(GNU)?.*sort.*(GNU)?.*'/>
		<set name='GNUTR' value='$(SBS_GNUTR)' type='tool' versionCommand='$(GNUTR) --version' versionResult='(GNU)?.*tr.*(GNU)?.*'/>
		<set name='GNUUNIQ' value='$(SBS_GNUUNIQ)' type='tool' versionCommand='$(GNUUNIQ) --version' versionResult='(GNU)?.*uniq.*(GNU)?.*'/>
		<set name='GNUDIFF' value='$(SBS_GNUDIFF)' type='tool' versionCommand='$(GNUDIFF) --version' versionResult='(GNU)?.*diff.*(GNU)?.*'/>
		<set name='ZIP' value="$(SBS_ZIP)" type='tool'/>
		<set name='UNZIP' value="$(SBS_UNZIP)" type='tool'/>
		<set name='PERL' value='$(SBS_PERL)' type='tool'/>
		<set name='PYTHON' value='$(SBS_PYTHON)' type='tool' versionCommand='$(PYTHON) -V' versionResult='Python 2\.[4567].*'/>
		<!-- Python3 is not mandatory so don't do a version check on it until it is -->
		<set name='PYTHON3' value='$(SBS_PYTHON3)' type='tool'/>
		
		<set name='DEFAULT_PLATFORMS' value='ARMV5 ARMV7 WINSCW X86'/>
		<set name='BASE_DEFAULT_PLATFORMS' value='ARMV5 ARMV7 WINSCW ARMV5SMP X86'/>
		<set name='BASE_USER_DEFAULT_PLATFORMS' value='ARMV5 ARMV7 WINSCW X86'/>

		<set name='BUILD_INCLUDE' value=''/>
		<set name='CREATEVMAP' value='$(PYTHON) $(SBS_HOME)/bin/createvmap.py' type='script'/>
		<set name='DEPCRUNCH' value='$(PYTHON) $(SBS_HOME)/bin/depcrunch.py' type='script'/>
		<set name='CREATEVMAPCPP' value='$(SBS_BVCPP)' type='tool'/>
		<set name='FEATURELISTFILES' value=''/>
		<set name='FEATUREVARIANTNAME' value=''/>
		<set name='QMAKE' value='$(SBS_QMAKE)' type='tool'/>
		<set name='MOC' value='$(SBS_MOC)' type='tool'/>
		<set name='UIC' value='$(SBS_UIC)' type='tool'/>
		<set name='RCC' value='$(SBS_RCC)' type='tool'/>
		<set name='QT_HEADERS' value='$(SBS_QT_HEADERS)' />
		<set name='QMAKE_INCDIR_QT' value='$(SBS_QMAKE_INCDIR_QT)' />
		<set name='QMAKESPEC' value='$(SBS_QMAKESPEC)' />
	</var>

</build>
